package com.zhongan.domain.usercenter;

import java.util.Date;

/**
 * 客户端access_code信息
 * Table: oauth_access_token
 */
public class OauthAccessToken {

    private String authenticationId;    //该字段具有唯一性, 是根据当前的username(如果有),client_id与scope通过MD5加密生成的
    private String refreshToken;        //该字段的值是将refresh_token的值通过MD5加密后存储的.
    private String tokenId;             //从服务器端获取到的access_token的值
    private Date createTime;            //数据的创建时间
    private String userName;            //登录时的用户名
    private String clientId;            //用于唯一标识每一个客户端(client)
    private String token;               //这是一个二进制的字段, 存储的数据是OAuth2AccessToken.java对象序列化后的二进制数据.
    private String authentication;      //存储将OAuth2Authentication.java对象序列化后的二进制数据.


    public String getAuthenticationId() {
        return this.authenticationId;
    }

    public void setAuthenticationId(String authenticationId) {
        this.authenticationId = authenticationId;
    }

    public String getRefreshToken() {
        return this.refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getTokenId() {
        return this.tokenId;
    }

    public void setTokenId(String tokenId) {
        this.tokenId = tokenId;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getClientId() {
        return this.clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getToken() {
        return this.token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getAuthentication() {
        return this.authentication;
    }

    public void setAuthentication(String authentication) {
        this.authentication = authentication;
    }

}
